home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 October / Macformat17.cdr / Shareware City / Developers / WASTETCL / WASTE TCL / CWASTEDlgText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-20  |  1.5 KB  |  59 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CWASTEDlgText.c
  3.  
  4.     A class with some of the functionality of CDialogText, but using CWASTEText
  5.  
  6.  ******************************************************************************/
  7.  
  8.  
  9. #pragma once
  10.  
  11. #include "CWASTEText.h"
  12.  
  13. class CDialog;
  14.  
  15. class CWASTEDlgText : public CWASTEText
  16. {
  17. public:
  18.     TCL_DECLARE_CLASS
  19.  
  20.     CWASTEDlgText();
  21.     CWASTEDlgText(CView *anEnclosure, CView *aSupervisor,
  22.                             short aWidth, short aHeight,
  23.                             short aHEncl, short aVEncl,
  24.                             SizingOption aHSizing = sizFIXEDSTICKY,
  25.                             SizingOption aVSizing = sizFIXEDSTICKY,
  26.                             short aLineWidth = -1, Boolean aScrollHoriz = 0,
  27.                             Boolean aIsRequired = FALSE, long aMaxValidLength = MAXLONG,
  28.                             Boolean aValidateOnResign = TRUE);
  29.     ~CWASTEDlgText();
  30.  
  31.     void         IWASTEDlgText(CView *anEnclosure, CView *aSupervisor,
  32.                     short aWidth, short aHeight,
  33.                     short aHEncl, short aVEncl,
  34.                     SizingOption aHSizing, SizingOption aVSizing,
  35.                     short aLineWidth);
  36.  
  37.     virtual void     IViewTemp(CView *anEnclosure, CBureaucrat *aSupervisor,
  38.                             Ptr viewData);
  39.  
  40.     virtual void     DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  41.     virtual void     GetTextString(StringPtr aString);
  42.  
  43. protected:
  44.  
  45.     void             IWASTEDlgTextX();
  46.     virtual void     MakeBorder();
  47. };
  48.  
  49. // Change propagation constants for CDialogText
  50.  
  51. enum
  52. {
  53.             // indicates the text has changed in some way
  54.             /* info parameter is pointer (short*) to pane ID    */
  55.     dialogTextChanged = 'DIA0',        // TCL 1.1.3 10/30/92 BF
  56.  
  57.     dialogTextLastChange = dialogTextChanged
  58. };
  59.